home *** CD-ROM | disk | FTP | other *** search
- /*
- File: PMSAMResources.h
-
- Contains: xxx put contents here xxx
-
- Written by: Tim Harnett
-
- Copyright: © 1994 by Apple Computer, Inc., all rights reserved.
-
- Change History (most recent first):
-
- <19> 2/21/95 TMH metrowerks compatiblity changes
- <18> 2/14/95 TMH added gEnabledDiagnostics
- <17> 2/9/95 TMH added LimitErrorReport flag
- <16> 2/6/95 TMH added bRecieveAfterSendNow
- <15> 1/27/95 TMH added resource for dir system mapping table
- <14> 12/15/94 TMH added gAssertsEnabled
- <13> 11/17/94 TMH more P3 config params
- <12> 11/2/94 TMH added IO trace resources
- <11> 11/2/94 TMH put initpacket in resource. add P3 param resource
- <10> 10/28/94 TMH added async flags to ctbp resource
- <9> 10/25/94 TMH added kCTBConfigStrAttrTypeResID
- <8> 10/21/94 TMH more comm config params
- <7> 10/20/94 TMH added fields to comm
- <6> 10/20/94 TMH added kCTBMacPadConfigStrings etc.
- <5> 10/18/94 TMH added 'comm' resource
- <4> 10/14/94 TMH added AEDTResource
- <3> 10/6/94 TMH added a sound
- <2> 10/4/94 TMH added debug flag BreakEveryScheduleEPPC
- <1> 10/3/94 TMH definition for Dflg resource
- 10/3/94 TMH xxx put comment here xxx
-
- To Do:
- */
-
- #ifndef __PMSAMResources__
- #define __PMSAMResources__
-
- #ifndef REZ
-
- //---------------------
- // .h includes
- //-----------------------
- #ifndef __CRString__
- #include "CRString.h"
- #endif
-
- #endif
-
-
-
- //---------------------
- // .r includes
- //-----------------------
- #ifdef REZ
-
- #ifndef __OCE_R__
- #include "OCE.r"
- #endif
-
- #endif
-
- //-----------------------------
- // Debug Flags
- //----------------------------
- #define bHFSSlotEnable 0x80
- #define bBreakOnScheduleEPPC 0x40
- #define bRunIfKeychainLocked 0x20
- #define bEnableCommCaptureFile 0x10
- #define bEnableAsserts 0x08
- #define bRecieveAfterSendNow 0x04
- #define bLimitErrorReports 0x02
- #define bDiagnosticsEnabled 0x01
-
- #ifdef REZ
-
- // Debug settings.
- type 'Dflg' {
- boolean disableHFSSlot, enableHFSSlot;
- boolean dontBreakOnScheduleEPPC, breakOnScheduleEPPC;
- boolean quitIfKeychainLocked,runIfKeyChainLocked;
- boolean disableIOTrace,enableIOTrace;
- boolean disableAsserts,enableAsserts;
- boolean dontReceiveAfterSendNow,receiveAfterSendNow;
- boolean dontLimitErrorReports,limitErrorReports;
- boolean disableDiagnostics,enableDiagnostics;
- };
-
- #endif REZ
-
- //---------------------------------
- // Apple Event Dispatch Table
- // See 'aedt' in MPW Types.r
- //---------------------------------
-
-
- #ifndef REZ
- struct AEDTResource {
- OSType eventClass;
- OSType eventID;
- OSType eventRefCon;
- };
- typedef struct AEDTResource AEDTResource;
- #endif
-
-
-
- //--------------------------------------------
- // Comm Channel Configiration Parameters
- //--------------------------------------------
-
- #ifdef REZ
-
- // for cstring resources
- type 'cstr' {
- cstring;
- };
-
-
- // CTB MacPad Configuration strings - these are not 'cstr' because
- // we cycle thru the set that describes all the macpad servers
- type 'mpad' {
- cstring;
- };
-
-
- // CRC Table
- type 'crct' {
- wide array {
- unsigned integer;
- };
- };
-
-
-
- // Tool CTB parameters -- one for each Modem Tool & X25 Tool
- type 'ctbp' {
- longint; // size of buffer for CTB configurations string
- longint; // open timeout in seconds
- longint; // close timeout in seconds
- longint; // read timeout in seconds
- longint; // write timeout in seconds
- longint; // minimum baud rate
-
- boolean openSync,openASync;
- boolean closeSync,closeASync;
- boolean readSync,readASync;
- boolean writeSync,writeASync;
- unsigned bitstring[12] = 0; // want it to be 16 bits
-
- };
-
-
- #endif REZ
-
-
-
- #ifndef REZ
-
- // flag bits.
- #define kOpenASync 0x8000
- #define kCloseASync 0x4000
- #define kReadASync 0x2000
- #define kWriteASync 0x1000
-
- struct CommParameterResource {
- long configStrBufSize;
- long openTimeout;
- long closeTimeout;
- long readTimeout;
- long writeTimeout;
- long minimumBaudRate;
- short flags; // async flags.
-
- };
- typedef struct CommParameterResource CommParameterResource;
-
-
-
-
- #endif
-
-
- //--------------------------------------------
- // 3 Configiration Parameters
- //--------------------------------------------
-
- #ifdef REZ
-
-
- // P3 protocol init packet -- one for batch client
- type 'p3cf' {
- longint; // number of sendInit retrys.
- longint; // heart beat frequency
- longint; // host inactive timeout.
- longint; // max unacked rx data.
- };
-
-
- #if qMacClient
-
- type 'p3i ' { //
- byte; // platForm
- byte; // version
- byte; // subVersion
- byte; // unUsed
- integer; // wMachineMem
- integer; // wPCType
- byte; // bReleaseMonth
- byte; // bReleaseDay
- integer; // wCustomerClass
- longint; // lUDOTimeStamp
- integer; // wSysVersion
- integer; // wSessionFlags
- byte; // bVideoType
- byte; // bProcessorType
- longint; // lMediaType
- wide array [14] { // os_info[14]
- byte;
- };
- longint; // foo1?
- longint; // foo2?
- };
-
- #else
-
- type 'p3i ' {
- byte; // platForm
- byte; // version
- byte; // subVersion
- byte; // unUsed
- integer; // wMachineMem
- integer; // wPCType
- byte; // bReleaseMonth
- byte; // bReleaseDay
- integer; // wCustomerClass
- longint; // lUDOTimeStamp
- integer; // wSysVersion
- integer; // wSessionFlags
- byte; // bVideoType
- byte; // bProcessorType
- longint; // lMediaType
- wide array [6] { // os_info[6]
- byte;
- };
-
- };
-
-
- #endif qBatchClient
-
- #endif REZ
-
-
-
- #ifndef REZ
-
-
- struct P3ConfigResource {
- long nSendInitRetries;
- long heartBeatFreq;
- long hostInactiveTimeout;
- long maxUnackedRxData;
- };
- typedef struct P3ConfigResource P3ConfigResource;
-
- #endif
-
-
- //-----------------------------------
- // O t h e r D i r E x t T y p e s
- //-----------------------------------
-
-
- #ifdef REZ
- type 'dxtt' {
- integer = $$Countof(SysDirArray);
- wide array SysDirArray {
- longint dirExtType;
- byte notRString,isRString;
- fill byte;
- fill byte;
- fill byte;
- pstring;
- align word;
- };
-
- };
-
- #endif REZ
-
-
- #ifndef REZ
-
-
-
-
- //-----------------------------------------------------
- // C D i r E x t T y p e L i s t I t e r a t o r
- //----------------------------------------------------
-
-
- struct DirExtTypeEntry {
- OSType extType;
- Boolean isRString;
- char fill1;
- char fill2;
- char fill3;
- Str255 dirSysName;
- };
- typedef struct DirExtTypeEntry DirExtTypeEntry;
-
-
- struct DirExtTypeTable {
- short count;
- DirExtTypeEntry dirExtTypeDesc;
- };
- typedef struct DirExtTypeTable DirExtTypeTable;
-
-
- class CDirExtTypeTableIterator {
- int fCurrentIndex;
- int fNumOfExtTypes;
- DirExtTypeTable** fDirExtTypeTable;
- long fCurrentOffset; // offset to the current rstring in the resource.
- public:
- CDirExtTypeTableIterator(short resID);
-
- DirExtTypeEntry* FirstDirExtType();
- Boolean More();
- DirExtTypeEntry* NextDirExtType();
-
-
- };
-
-
- inline Boolean CDirExtTypeTableIterator::More() { return fCurrentIndex <= fNumOfExtTypes; };
-
-
-
-
- #endif
-
-
- #endif __PMSAMResources__